package com.skyable.common.enums;

/**
 * @author GaoYuan
 * @date 2020/12/10 15:19
 * @desc 操作日志枚举类
 */
public enum OperationType {
   /**
    * 操作类型
    */
   UNKNOWN("unknown","未知操作"),
   INSERT("insert","新增"),
   DELETE("delete","删除"),
   SELECT("select","查询"),
   UPDATE("update","更新"),
   LOGIN("login","登录"),
   LOGOUT("logout","登出"),
   IMPORT("import","导入"),
   EXPORT("export","导出"),
   AUTH("auth","授权");

   private String key;
   private String value;

   public String getKey() {
      return key;
   }

   public void setKey(String key) {
      this.key = key;
   }

   public String getValue() {
      return value;
   }

   public void setValue(String value) {
      this.value = value;
   }

   OperationType(String key, String value) {
      this.key = key;
      this.value = value;
   }
}